import request from '../utils/request'

export const getDeptsListApi = () =>
  request.collection('departments').getFullList({
    sort: '-created'
  })

export const addDeptApi = (data) => request.collection('departments').create(data)

export const deleteDeptByIdApi = (id) => request.collection('departments').delete(id)
